package com.example.vote.utils;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * ClassName: Result
 * Package: com.example.vote.utils
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-06-25
 * Time: 8:42
 */

@Data
public class Result<T> {
    //统一返回结果类的封装

    //状态码
    private Integer status;
    //状态描述
    private String message;
    //返回的数据
    private T date;

    //生成构造器
    public Result(Integer status, String message, T date) {
        this.status = status;
        this.message = message;
        this.date = date;
    }
}
